package org.test.cxf.ws.imp.lee;

import org.test.cxf.ws.imp.Cat;
import org.test.cxf.ws.imp.HelloWorldWs;
import org.test.cxf.ws.imp.HelloWorldWsService;
import org.test.cxf.ws.imp.User;

import java.util.List;

public class ClientMain {
    public static void main(String[] args) {
        HelloWorldWsService factory = new HelloWorldWsService();
        HelloWorldWs hw = factory.getHelloWorldWsPort();
        System.out.println(hw.sayHi("夏国杰CXF"));
        User user = new User();
        user.setId(1);
        user.setName("夏国杰");
        user.setPass("3322");
        List<Cat> list = hw.getCatByUser(user);
        for (Cat cat : list) {
            System.out.println(cat.getName()+","+cat.getColor());
        }




    }
}
